including files without having to specify $_SERVER['DOCUMENT_ROOT']
Posted
by pâtissier
on Stack Overflow
See other posts from Stack Overflow
or by pâtissier
Published on 2009-04-24T16:11:02Z
Indexed on
2010/06/01
19:23 UTC
Read the original article
Hit count: 136
Hi...
Before the PHP Version update I used to be able to include files as following without specifying the document root:
<?php include '/absolute/path/to/files/file1.php'; ?>
However I now have to include the same file as following:
<?php include $_SERVER['DOCUMENT_ROOT'].'/absolute/path/to/files/file1.php'; ?>
What php.ini setting could have overridden the former behaviour?
© Stack Overflow or respective owner